package com.zm.xiaohashu.note.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 笔记收藏表
 * @TableName t_note_collection
 */
@TableName(value ="t_note_collection")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class NoteCollection {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 笔记ID
     */
    private Long noteId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 收藏状态(0：取消收藏 1：收藏)
     */
    private Integer status;
}